//
//  ViewController.m
//  王宇先_06_通讯录
//
//  Created by wyx on 16/3/16.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "ViewController.h"
#import "CellView.h"
#import "MyScrollView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    //滚动范围
    MyScrollView *scorll = [[MyScrollView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width , 8000)];
    [self.view addSubview:scorll];
    [scorll release];
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 1)];
    [view release];
    CellView *con1 = [[CellView alloc] initWithFrame:CGRectMake(10, 10, 130, 130) withImage:[UIImage imageNamed:@"EPW4{(HKWB0O2SWNKRD9[8B.jpg"] withLableOfName:@"王宇先" withOfNameOfNum:@"18040107339" withView:view];
    [scorll addSubview:con1];
    [con1 release];
    CellView *con2 = [[CellView alloc] initWithFrame:CGRectMake(10, 160, 130, 130) withImage:[UIImage imageNamed:@"F(7]JXM@J@PJ14`AM]NC9_I.jpg"] withLableOfName:@"朱彦明" withOfNameOfNum:@"18344567839" withView:view];
    [scorll addSubview:con2];
    [con2 release];
    CellView *con3 = [[CellView alloc] initWithFrame:CGRectMake(10, 310, 130, 130) withImage:[UIImage imageNamed:@"WFW}CS65)H@N1X`B4FS3WH4.jpg"] withLableOfName:@"李成" withOfNameOfNum:@"18846987536" withView:view];
    [scorll addSubview:con3];
    [con3 release];
    CellView *con4 = [[CellView alloc] initWithFrame:CGRectMake(10, 470, 130, 130) withImage:[UIImage imageNamed:@"DL4_KLOJ3Z{[AHYE{AK4Q8L.jpg"] withLableOfName:@"吴秦风" withOfNameOfNum:@"187745697845" withView:view];
    [scorll addSubview:con4];
    [con4 release];
    CellView *con5 = [[CellView alloc] initWithFrame:CGRectMake(10, 620, 130, 130) withImage:[UIImage imageNamed:@"0$HWYV$Q17WEUI4XFZN78GC.jpg"] withLableOfName:@"蔡强" withOfNameOfNum:@"18046981122" withView:view];
    [scorll addSubview:con5];
    [con5 release];
    CellView *con6 = [[CellView alloc] initWithFrame:CGRectMake(10, 770, 130, 130) withImage:[UIImage imageNamed:@"1RVF}(Z05{PFUNJ7QYU%P[A.jpg"] withLableOfName:@"刘金朋" withOfNameOfNum:@"18040107856" withView:view];
    [scorll addSubview:con6];
    [con6 release];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
